<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="../common/head.jsp" %>

<link href="/static/css/party/fore.css" type="text/css" rel="stylesheet"/>
<link href="/static/css/party/home.css" type="text/css" rel="stylesheet"/>

<div style="background-image: url('/static/images/party/img/shuimo3.jpg')">




<div id="fore-index">

    <%--主页顶部--%>
    <div class="fore-header">
        <div class="index-title">
            <img class="index-logo" src="/static/images/party/img/icon-f2-on.png"/>
            <span class="name">兴文县党建后台管理</span>
            <%--<div class="login-info">--%>
                <%--<c:choose>--%>
                    <%--<c:when test="${userInfo == null}">--%>
                        <%--<span class="user-name color-red">未登录</span>&nbsp;--%>
                        <%--<span><a class="login" href="javascript:void(0)">[登录]</a></span>--%>
                    <%--</c:when>--%>
                    <%--<c:otherwise>--%>
                        <%--<span class="user-name">欢迎：${userInfo.getName()}</span>&nbsp;--%>
                        <%--<span><a class="leave" href="leave">[退出]</a></span>--%>
                    <%--</c:otherwise>--%>
                <%--</c:choose>--%>
            <%--</div>--%>
        </div>
    </div>

    <%--主页导航--%>
    <div class="fore-nav">
        <div class="fore-box">

            <%--党组织管理--%>
            <dl class="box-dl">
                <dt>
                    党组织管理
                    <img class="dt-icon-right" src="/static/images/party/img/nav_icon_20.png">
                </dt>
                <dd page-name="/party/fore/grouplist">

                    <a href="javascript:void(0)">党组织列表</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>
                <dd page-name="/party/fore/addgroup">

                    <a href="javascript:void(0)">添加党组织</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>


            <%--<c:if test="${userInfo != null}">--%>
                <%--<dd page-name="/fore/purchase">--%>
                    <%--<img class="dd-icon-left" src="/static/images/nav_icon_112.png">--%>
                    <%--<a href="javascript:void(0)">课件管理</a>--%>
                    <%--<img class="dd-icon-right layui-hide" src="/static/images/nav_icon_21.png">--%>
                <%--</dd>--%>
            <%--</c:if>--%>
            </dl>

                <%--组织人员管理--%>
                <dl class="box-dl">
                    <dt>
                         组织人员管理
                        <img class="dt-icon-right" src="/static/images/party/img/nav_icon_20.png">
                    </dt>
                    <dd page-name="/party/fore/personlist">

                        <a href="javascript:void(0)">组织人员列表</a>
                        <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                    </dd>
                    <dd page-name="/party/fore/addperson">

                        <a href="javascript:void(0)">添加人员</a>
                        <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                    </dd>

                    <dd page-name="/party/fore/abroad">

                        <a href="javascript:void(0)">组织人员出国管理</a>
                        <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                    </dd>


                    <%--<c:if test="${userInfo != null}">--%>
                    <%--<dd page-name="/fore/purchase">--%>
                    <%--<img class="dd-icon-left" src="/static/images/nav_icon_112.png">--%>
                    <%--<a href="javascript:void(0)">课件管理</a>--%>
                    <%--<img class="dd-icon-right layui-hide" src="/static/images/nav_icon_21.png">--%>
                    <%--</dd>--%>
                    <%--</c:if>--%>
                </dl>



            <%--学员管理--%>
            <dl class="box-dl">
                <dt>
                    学员管理
                    <img class="dt-icon-right" src="/static/images/party/img/nav_icon_20.png">
                </dt>

                <dd page-name="/party/fore/studentlist">

                    <a href="javascript:void(0)">学员数据</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>
                <dd page-name="/party/fore/addstudent">

                    <a href="javascript:void(0)">添加学员数据</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>

            </dl>

            <%--文章管理--%>
            <dl class="box-dl">
                <dt>
                    文章管理
                    <img class="dt-icon-right" src="/static/images/party/img/nav_icon_20.png"/>
                </dt>
                <dd page-name="/party/fore/articlelist">

                    <a href="javascript:void(0)">文章列表</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>
                <dd page-name="/party/fore/addarticle">

                    <a href="javascript:void(0)">添加文章</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>
            </dl>

            <%--党员教育--%>
            <dl class="box-dl">
                <dt>
                     党员教育
                    <img class="dt-icon-right" src="/static/images/party/img/nav_icon_20.png"/>
                </dt>

                <dd page-name="/party/fore/lessonlist">

                    <a href="javascript:void(0)">课程管理</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>

                <dd page-name="/party/fore/addlesson">

                    <a href="javascript:void(0)">添加课程</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>

            </dl>
            <%--公共服务--%>
            <dl class="box-dl">
                <dt>
                    公共服务
                    <img class="dt-icon-right" src="/static/images/party/img/nav_icon_20.png"/>
                </dt>

                <dd page-name="/party/fore/changelist">

                    <a href="javascript:void(0)">组织关系转接</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>
                <dd page-name="/party/fore/rdsq">

                    <a href="javascript:void(0)">入党申请</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>
                <dd page-name="/party/fore/reportperson">

                    <a href="javascript:void(0)">个人举报</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>
                <dd page-name="/party/fore/reportgroup">

                    <a href="javascript:void(0)">组织举报</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>

                <dd page-name="/party/fore/ldonglist">

                    <a href="javascript:void(0)">流动挂靠</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>
                <dd page-name="/party/fore/lchulist">

                    <a href="javascript:void(0)">流出申请</a>
                    <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                </dd>
            </dl>

            </dl>

            <%--系统管理--%>
                <dl class="box-dl">
                    <dt>
                         系统管理
                        <img class="dt-icon-right" src="/static/images/party/img/nav_icon_20.png"/>
                    </dt>

                    <dd page-name="/party/fore/updatepassword">

                        <a href="javascript:void(0)">修改密码</a>
                        <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                    </dd>
                    <dd>

                        <a href="/party/home/index">退出</a>
                        <img class="dd-icon-right layui-hide" src="/static/images/party/img/nav_icon_21.png">
                    </dd>
                </dl>
        </div>
    </div>

    <%--主页主体--%>
    <div class="fore-main"></div>

    <%--登录框--%>
    <div class="fore-login layui-hide">
        <form class="layui-form layui-form-pane" method="post" action="" style="padding: 15px">
            <div class="layui-form-item">
                <label class="layui-form-label">账号：</label>
                <div class="layui-input-inline no-margin-right" style="width: 180px">
                    <input type="text" name="account" class="layui-input" lay-verify="ac\count" placeholder="账号" autocomplete="on" maxlength="20" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密码：</label>
                <div class="layui-input-inline no-margin-right" style="width: 180px">
                    <input type="password" name="password" class="layui-input" lay-verify="password" placeholder="密码" maxlength="20" />
                </div>
            </div>
            <div class="layui-form-item" style="text-align: center">
                <button type="reset" class="layui-btn layui-btn-danger btn-reset">重置</button>
                <button type="button" class="layui-btn btn-submit" lay-submit="" lay-filter="sub">立即登录</button>
            </div>
        </form>
    </div>
</div>


<script type="application/javascript" src="/static/js/party/fore-index.js"></script>
<script type="application/javascript" src="/static/js/party/text_plugin.js"></script>

<script type="text/javascript">
    layui.use(['form', 'layer'], function () {
        var $ = layui.jquery
            ,form = layui.form
            ,layer = layui.layer;


        $("#fore-index .login").click(function(){
            layer.msg("click");
            layer.open({
                type: 1,
                area: ['335px',''],
                title: "兴文县党建后台管理系统",
                anim: 4,
                shadeClose: true,
                content: $(".fore-login").html()
            });
        });


        // 验证
        form.verify({
            account: function (value) {
                if (value == "") {
                    return "请输入账号";
                }
            },
            password: function (value) {
                if (value == "") {
                    return "请输入密码";
                }
            }
        });


        // 提交监听
        form.on('submit(sub)', function (data) {
            $.post("/auth/login",  data.field, function(res){
                if(res.code > 0){
                    layer.alert("登陆失败");
                }else{
                    layer.alert("登陆成功！",{
                        icon:1,
                        closeBtn:1
                    },function(){
                        location.href="/";
                    });
                }
            });
            return false;
        })

    })

</script>



</div>
<%@ include file="../common/foot.jsp" %>
